<template>
  <el-form :model="formData" ref="form" class="form-wrap" style="padding: 10px">
    <el-form-item v-for="field in fields" :key="field.prop" :label="field.label">
      <span>:{{formData[field.prop]}}</span>
    </el-form-item>
  </el-form>
</template>

<script>

export default {
  name: "ViewInfo",
  props: {
    formData: Object,
    filedInfo: Array
  },
  data() {
    return {
      fields: []
    };
  },
  created() {
    this.fields = this.filedInfo;
  },
  methods: {},
};
</script>

<style lang="scss" scoped>
</style>